/* 药品 Tabs 容器 */
.tabsContainer {
  margin: 10px 15px;
  overflow-x: hidden;
}

.customTabs {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* 药品网格样式 */
.drugGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 15px;
  background: #f5f5f5;
  min-height: 200px;
}

/* 加载状态 */
.loadingContainer {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.loadingSpinner {
  width: 32px;
  height: 32px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #ff4d4f;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loadingContainer p {
  color: #666;
  font-size: 14px;
  margin: 0;
}

/* 错误状态 */
.errorContainer {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.errorMessage {
  color: #ff4d4f;
  font-size: 14px;
  margin: 0 0 16px 0;
  text-align: center;
}

.retryButton {
  background: #ff4d4f;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.retryButton:hover {
  background: #ff7875;
}

/* 无数据状态 */
.noDrugs {
  grid-column: 1 / -1;
  text-align: center;
  color: #999;
  font-size: 14px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 响应式设计 */
@media (max-width: 480px) {
  .drugGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
  }
  
  .tabsContainer {
    margin: 10px 10px;
  }
}

@media (min-width: 768px) {
  .drugGrid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .drugGrid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

/* 自定义 Tabs 样式 */
.customTabs :global(.ant-tabs-nav) {
  margin: 0;
  padding: 0 15px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.customTabs :global(.ant-tabs-tab) {
  padding: 12px 16px;
  font-weight: 500;
  color: #666;
  transition: all 0.3s ease;
}

.customTabs :global(.ant-tabs-tab:hover) {
  color: #ff4d4f;
}

.customTabs :global(.ant-tabs-tab-active) {
  color: #ff4d4f;
}

.customTabs :global(.ant-tabs-tab-active .ant-tabs-tab-btn) {
  color: #ff4d4f;
  font-weight: 600;
}

.customTabs :global(.ant-tabs-ink-bar) {
  background: #ff4d4f;
  height: 3px;
}

.customTabs :global(.ant-tabs-content-holder) {
  background: #f5f5f5;
  overflow-x: hidden;
}
